<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
	#dvs{width:200px;height:200px;background:blue;}
	</style>
</head>
<body>
	<div id='dvs'></div>

	<a href="http://www.baidu.com">baidu</a>

	<script type="text/javascript" src='jquery-1.8.3.min.js'></script>

	<script type="text/javascript">
	//$(window).ready(function(){

		/*$(function(){	
			$('#dvs').click(function(){

				alert(1234);

			})

			})*/

	//})

	/*$('#dvs').mouseover(function(){

		alert('1234');
	})*/

	// $('#dvs').click(function(){

	// 	alert(7890);
	// }).trigger('click');
	

	//$('#dvs').trigger('mouseover');

	//获取a元素
	$('a').click(function(){

		alert('1234567');
		//阻止默认行为
		return false;
	})

	$('#dvs').mousemove(function(e){

		var x = e.clientX;
		var y = e.clientY;

		var xx = e.pageX;
		var yy = e.pageY;

	})
	//

	if(window.XMLHttpRequest)
	{
		var x = new XMLHttpRequest; 

	} else {

		var x = new ActiveXObject('Microsoft.XMLHTTP');
	}

	x.onreadystatechange = function()
	{
		if(x.readyState == 4 && x.status == 200) {

			x.responseText;
		}
	}

	x.open('GET','2.php',true)
	x.send()



	</script>

	
</body>
</html>